<?php $this->headScript()->appendFile($this->JS_PATH . 'jquery.dataTables.js'); ?>
<?php $this->headScript()->appendFile($this->JS_PATH . 'meetinglisting.js'); ?>
<?php $this->headLink()->appendStylesheet($this->CSS_PATH . 'lib/jquery.dataTables.css'); ?>
<?php $this->headLink()->appendStylesheet($this->CSS_PATH . 'compiled/grids.css'); ?>
<!-- this page specific styles -->

<div class="container-fluid">
    <div id="pad-wrapper" class="datatables-page">

        <?php if (count($this->urlData) <= 0): ?>
            <!-- grid with .row-fluid -->
            <div class="grid-wrapper">
                <div class="row-fluid head">
                    <div class="presentation-cnt">
                        <h1>No meetings created yet !</h1>
                    </div>
                </div>

            </div>
        <?php else: ?>

            <?php echo $this->flashmessages(); ?>
            <div class="row-fluid">
                <div class="span12">
                    <table cellpadding="0" cellspacing="0" border="0" class="" id="cuetablelist">
                        <thead>
                            <tr role="row">
                                <th tabindex="0" rowspan="1" colspan="1">Meeting Name</th>
                                <th tabindex="0" rowspan="1" colspan="1">Meeting Custom URL</th>
                                <th tabindex="0" rowspan="1" colspan="1">Ask page Url</th>
                                <th tabindex="0" rowspan="1" colspan="1">Presentation Url</th>
                                <th tabindex="0" rowspan="1" colspan="1">Que Question</th>
                                <th tabindex="0" rowspan="1" colspan="1">Status</th>
                                <th tabindex="0" rowspan="1" colspan="1">&nbsp;</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php foreach ($this->urlData as $_meeting): ?>
                                <tr class="question-cnt">
                                    <td><?php echo $_meeting['url_name']; ?></td>
                                    <td class="center"><?php echo $_meeting['url_hashtag']; ?></td>    
                                    <td class="center">
                                        <a target="_blank" href="<?php echo $_meeting['url_askpage_url']; ?>">Ask page Url</a>
                                    </td>

                                    <td class="center">
                                        <a target="_blank" href="<?php echo $_meeting['url_presentatioin_url']; ?>">Presentation Url</a>
                                    </td>

                                    <td class="center">
                                        <a href="<?php echo $this->url(array('module' => 'admin', 'controller' => 'cue', 'action' => 'index', 'url_id' => $_meeting['url_id']), null, true); ?>">Que page</a>
                                    </td>

                                    <td class="center">
                                        <?php if ($_meeting['url_status'] == '1'): ?>
                                            <span class="label label-success">Active</span>
                                        <?php else: ?>
                                            <span class="label label-info">Inactive</span>
                                        <?php endif; ?>
                                    </td>

                                    <td class="center">
                                        <a href="<?php echo $this->url(array('module' => 'admin', 'controller' => 'meeting', 'action' => 'form'), null, TRUE); ?>/url_id/<?php echo $_meeting['url_id']; ?>">Edit</a>
                                    </td>
                                </tr>
                            <?php endforeach; ?>
                        </tbody>	
                    </table>
                </div>
            </div>
        <?php endif; ?> 
    </div>
</div>
